package com.finance.service.customer;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.finance.dao.customer.UserInfoMapper;
import com.finance.entity.customer.UserInfo;

@Service("UserInfoService")
public class UserInfoService {
	
	@Resource(name = "UserInfoMapper")
	private UserInfoMapper userInfoMapper;
	
    public void deleteByPrimaryKey(String kfUserId){
    	userInfoMapper.deleteByPrimaryKey(kfUserId);
    }

    public void insert(UserInfo record){
    	userInfoMapper.insert(record);
    }

    public void insertSelective(UserInfo record){
    	userInfoMapper.insertSelective(record);
    }

    public UserInfo selectByPrimaryKey(String kfUserId){
    	return userInfoMapper.selectByPrimaryKey(kfUserId);
    }

    public void updateByPrimaryKeySelective(UserInfo record){
    	userInfoMapper.updateByPrimaryKey(record);
    }

    public void updateByPrimaryKey(UserInfo record){
    	userInfoMapper.updateByPrimaryKey(record);
    }
    
    public List<UserInfo> findByListUserId(String userId){
    	return userInfoMapper.findByListUserId(userId);
    }

}
